package com.fdm.model;

import com.fdm.model.accounts._Account;

public class BankAccountOutputVOBuilder
{
	public BankAccountOutputVO buildVO(_Account workingAccount)
	{
		String accountNumberS = Integer.toString(workingAccount.getAccountNumber());
		String accountType = workingAccount.getAccountType().toString();
		String name = workingAccount.getName();
		String balanceS = Double.toString(workingAccount.getBalance());
		String overDraftS = Double.toString(workingAccount.getOverDraftLimit());
		
		return new BankAccountOutputVO (accountNumberS, accountType, name,
				overDraftS,balanceS);
	}
}
